{% extends 'teacher/teacher_base.html' %}
{% block title %}<a href="#">班级管理</a> <span class="divider">/</span>  {% endblock title %}
   {% block teacherContent%}
     {% if courses %}
        <div class="row-fluid">
                        <!-- block -->
                        <div class="block">
                            <div class="navbar navbar-inner block-header">
                                <div class="muted pull-left">班级管理</div>
                            </div>
                            <div class="block-content collapse in">
                                <div class="span12">
                                    
  									<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="example">
								     <thead>
                                            <tr>
                                                <th>序号</th>
                                                <th>班级编号</th>
                                                <th>课程编号</th>
                                                <th>课程名称</th>
                                                <th>上课年级</th>
                                                <th>所属学院</th>
                                                <th>上课时间</th>
                                                <th>上课地点</th>
                                                <th>学分</th>
                                                <th>班级人数</th>
      
       
                        
                                            </tr>
                                        </thead>
										<tbody>
											    	 {% for course in courses %}
                                               
       
                                            <tr>
                                                <td>{{ forloop.counter }}</td>
                                                <td><a href="{% url 'teacherManagementClass' course.selectCourseID %}">{{ course.selectCourseID }}</a></td>
                                                <td>{{ course.selectCourses }}</td>
                                                <td>{{ course.selectCourses.courseName }}</td>
                                                <td>{{ course.selectCourses.CourseGrade }}</td>
                                                <td>{{ course.selectCourses.courseInstitute }}</td>
                                                <td>{{ course.selectCourseClassTime }}</td>
                                                <td>{{ course.selectCourseClassroom }}</td>
                                                <td>{{ course.selectCourses.courseCredit }}</td>
                                                <td>50</td>
                             
                                            </tr>
                             
                                           {% endfor %}
										</tbody>
									</table>
                                </div>
                            </div>
                        </div>
                        <!-- /block -->
                    </div>
      {% else %}
      <h2>没有您的课程</h2>
      {% endif %}


   {% endblock teacherContent %}
